﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="LoadOnDemand.aspx.cs" Inherits="ControlExplorer.C1TreeView.LoadOnDemand" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1TreeView" TagPrefix="wijmo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SiteMapDataSource ID="SiteMapDataSource" runat="server" ShowStartingNode="False" />
    <wijmo:C1TreeView ID="C1TreeView1" ShowCheckBoxes="true" LoadOnDemand="true" DataSourceID="SiteMapDataSource" ShowExpandCollapse="true" DataBindStartLevel="0" Width="350px" runat="server">
    </wijmo:C1TreeView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" runat="server">
    <p>
        <strong>C1TreeView </strong>支持动态检索数据。当父节点展开时，用AJAX自动加载子节点。</p>
    <p>
        设置以下属性，您还可以按需加载数据：</p>
    <ul>
        <li><strong>LoadOnDemand </strong>- 值为True时，<strong>C1TreeView </strong>只加载部分数据。</li>
        <li><strong>DataBindStartLevel </strong>- 指定开始自动加载的级数。</li>
    </ul>
    <p>
        如果<strong>DataBindStartLevel</strong> 属性设为 0，只对根节点进行限制。如果值为1，那么根节点和第一级节点都会有所限制。它的默认值为-1，此时忽略该属性。</p>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
